package com.hsw.testdemo

//import com.freeme.globalsettings.GlobalSettings

import android.R
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.hsw.testdemo.databinding.ActivityMainBinding
import java.util.*


class MainActivity : AppCompatActivity() {

    lateinit var binding: ActivityMainBinding
    val tabListData:MutableList<String> = mutableListOf()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)




//        binding.button.setOnClickListener {
//            Log.e("kkkkkk", "onCreate: ------------11 11111", )
//            Stat.reportStat(this,"0F8CDC00-14080F26-A192415B-BF58575C")
//            Log.e("kkkkkk", "onCreate: ------------11 2222", )
//
////            GlobalSettings.put(this, "currentData", Calendar.getInstance().get(Calendar.DAY_OF_YEAR))
////            GlobalSettings.put(this, "currentData", 444)
//
//
//
////            val d = GlobalSettings.getInt(this, "currentData", 0)
//
////            Log.e("kkkkkk", "onCreate: ------------111 333 ==== = ${d}", )
//        }
//        binding.unionVip.setOnClickListener {
//            val intent = Intent("com.droi.unionvip.export.ExportUnionVipActivity").apply {
//                setComponent(ComponentName("com.freeme.secureguard","com.droi.unionvip.export.ExportUnionVipActivity"))
//            }
//            startActivity(intent)
//      life

//        var isLogin = false
//        runBlocking {
//            coroutineScope {
//                isLogin =   async {
//                    Log.d("likai", "onCreate: -------------协程开始执")
//                    delay(5000)
//
//                    Log.d("likai", "onCreate: -------------协程执行完毕")
//
//                    true
//                }.await()
//            }
//
//        }
//        Log.d("likai", "onCreate: -------------runBlocking 函数222222 ==${isLogin} ")

//
//
//        tabListData.add("hkhkjh")
//        binding.mYPKTabLayoutView2.setTabTextList(tabListData)
    }
}